package com.xln.furns.dao.impl;

import com.xln.furns.dao.ManageDAO;
import com.xln.furns.entity.Manage;

public class ManageDAOimpl extends BasicDAO<Manage> implements ManageDAO {


    @Override
    public Manage queryByNameAndPassword(String name, String password) {

        String sql = "SELECT `id`,`name`,`password`,`email` FROM `manage`"+
                " WHERE `name`=? and `password`=md5(?)";

        return querySingle(sql,Manage.class,name,password);
    }
}
